﻿// Infrastructure/Helpers/FileHelper.cs

using System.IO;

namespace DatabaseManager.Infrastructure.Helpers
{
    public static class FileHelper
    {
        public static void EnsureDirectoryExists(string path)
        {
            if (!Directory.Exists(path))
                Directory.CreateDirectory(path);
        }

        public static void WriteToFile(string filePath, string content)
        {
            File.WriteAllText(filePath, content);
        }
    }
}